package com.itheima.service;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

public class ExceptionResolverDemo {
    public void show1(){
        System.out.println("类型转换异常");
        Object str = "zhangsan";
        Integer num = (Integer)str;
    }
    public void show2(){
        System.out.println("除零异常");
        int i=1/0;
    }
    public void show3() throws FileNotFoundException {
        System.out.println("文件找不到异常");
        InputStream in = new FileInputStream("C:\\xxx\\xxx");
    }
}
